home *** CD-ROM | disk | FTP | other *** search
/ Ultimedia 1 / Ultimedia 1.iso / tools / grafiktools / showpicasso / source / sp_catalog.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-08  |  2.2 KB  |  86 lines

  1. /* This file was created automatically by CatComp.
  2.  * Do NOT edit by hand!
  3.  */
  4.  
  5. #define MSG_NOFILE 1
  6. #define MSG_NOTKNOWN 2
  7. #define MSG_EOPENIFF 3
  8. #define MSG_EALLOCMEM 4
  9. #define MSG_EPARSEIFF 5
  10. #define MSG_MIFFILBM 6
  11. #define MSG_CHKEXIST2 7
  12. #define MSG_NOSCR 8
  13. #define MSG_NOPUBSCR 9
  14. #define MSG_EOPENLIBS 10
  15.  
  16. #define MSG_NOFILE_STR "Object not found"
  17. #define MSG_NOTKNOWN_STR "Object is not a IFF ILBM file"
  18. #define MSG_EOPENIFF_STR "Error OpenIFF()"
  19. #define MSG_EALLOCMEM_STR "Not enough work space"
  20. #define MSG_EPARSEIFF_STR "Error ParseIFF()"
  21. #define MSG_MIFFILBM_STR "Mangled IFF ILBM file"
  22. #define MSG_CHKEXIST2_STR "Chunk exist two times"
  23. #define MSG_NOSCR_STR "Screen not available"
  24. #define MSG_NOPUBSCR_STR "PubScreen not available"
  25. #define MSG_EOPENLIBS_STR "Open libraries failed"
  26.  
  27. struct CatCompArrayType
  28. {
  29.     LONG   cca_ID;
  30.     STRPTR cca_Str;
  31. };
  32.  
  33. static const struct CatCompArrayType CatCompArray[] =
  34. {
  35.     {MSG_NOFILE,(STRPTR)MSG_NOFILE_STR},
  36.     {MSG_NOTKNOWN,(STRPTR)MSG_NOTKNOWN_STR},
  37.     {MSG_EOPENIFF,(STRPTR)MSG_EOPENIFF_STR},
  38.     {MSG_EALLOCMEM,(STRPTR)MSG_EALLOCMEM_STR},
  39.     {MSG_EPARSEIFF,(STRPTR)MSG_EPARSEIFF_STR},
  40.     {MSG_MIFFILBM,(STRPTR)MSG_MIFFILBM_STR},
  41.     {MSG_CHKEXIST2,(STRPTR)MSG_CHKEXIST2_STR},
  42.     {MSG_NOSCR,(STRPTR)MSG_NOSCR_STR},
  43.     {MSG_NOPUBSCR,(STRPTR)MSG_NOPUBSCR_STR},
  44.     {MSG_EOPENLIBS,(STRPTR)MSG_EOPENLIBS_STR},
  45. };
  46.  
  47. /*
  48. static const char CatCompBlock[] =
  49. {
  50.     "\x00\x00\x00\x00\x00\x12"
  51.     MSG_NOFILE_STR "\x00\x00"
  52.     "\x00\x00\x00\x01\x00\x1E"
  53.     MSG_NOTKNOWN_STR "\x00"
  54.     "\x00\x00\x00\x02\x00\x10"
  55.     MSG_EOPENIFF_STR "\x00"
  56.     "\x00\x00\x00\x03\x00\x16"
  57.     MSG_EALLOCMEM_STR "\x00"
  58.     "\x00\x00\x00\x04\x00\x12"
  59.     MSG_EPARSEIFF_STR "\x00\x00"
  60.     "\x00\x00\x00\x05\x00\x16"
  61.     MSG_MIFFILBM_STR "\x00"
  62.     "\x00\x00\x00\x06\x00\x16"
  63.     MSG_CHKEXIST2_STR "\x00"
  64.     "\x00\x00\x00\x07\x00\x16"
  65.     MSG_NOSCR_STR "\x00\x00"
  66.     "\x00\x00\x00\x08\x00\x18"
  67.     MSG_NOPUBSCR_STR "\x00"
  68.     "\x00\x00\x00\x09\x00\x16"
  69.     MSG_EOPENLIBS_STR "\x00"
  70. };
  71. */
  72.  
  73. STRPTR GetString(LONG stringNum)
  74. {
  75.  register LONG l;
  76.  STRPTR  builtIn;
  77.  
  78.     for(l=0;l != stringNum;l++);
  79.     builtIn = CatCompArray[l].cca_Str;
  80.  
  81.     if (LocaleBase)
  82.         return(GetCatalogStr(catalog,stringNum,builtIn));
  83.  
  84.     return(builtIn);
  85. }
  86.